<template>
    <el-button :type="btnType" v-waves size="small">
        <i class="el-icon-wallet" v-show="showIcon" />{{ text }}
    </el-button>
</template>

<script>
import waves from '@/directive/waves/index.js'
export default {
    name:'AddButtonIcon',
    props:{
        showIcon: {
            type: Boolean,
            default: true
        },
        btnType: {
         type: String,
         default: 'primary'   
        },
        text: {
            type: String,
            default: '上传'
        }
    },
    directives: {
        waves
    }
}
</script>

<style lang="scss" scoped>
</style>